Given the following equation for the speed of light:
$$c = \lambda \nu$$
And the energy of a photon:
$$E = h \nu$$
Let us calculate the energy of an X-ray photon.